var current =1
$(function(){
	init();
	
});
function init(){
	getAll(current ,0);
	
}
function getAll(current,flag){
	$(".tablelist").empty();
	$(".tablelist").append("<tr><th>编号</th><th>标题</th><th>操作</th><tr>");
	$.ajax({
		url:"../HtController?type=list",
		data:{current:current,flag:flag},
		type:"post",
		dataType:"json",
		success:function(mydata){
			var str = "";
			$.each(mydata.list,function(i,xx){
				str+="<tr>";
				str+="<td>"+xx.htid+"</td>";
				str+="<td>"+xx.htname+"</td>";
				str+="<td>修改</td>";
				str+="</tr>";
			});
			$(".tablelist").append(str);
		}
	})
}

